﻿<%@ page language="java" pageEncoding="GBK" %>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/jb-common.tld" prefix="jb"  %>
<script src="validate.js" ></script>
<script src="icommon.js" ></script>
<html:errors/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <title>新建客户流失</title>
	<link rel="stylesheet" type="text/css" href="styles.css" >
	<script>
		function doDel(id){
			if ( window.confirm("确定删除？") ){
				window.location.href = "?o=doDel&id=" + id;
			}
		}
	</script>
  </head>

  <body class="main">
  <html:form action="lost" method="post">
  	<html:hidden property="o" value="doAdd" />
  		<span class="page_title">新建客户流失</span>
		<div class="button_bar">
			<button class="common_button" onclick="javascript:history.go(-1);">返回</button>
			<button class="common_button" onclick="javascript:doSubmit('doAdd');">保存</button>
		</div>
		<table class="query_form_table" border="0" cellPadding="3" cellSpacing="0">
			<tr>
								<th>编号</th>
				<td><html:text property="item.lstId" /></td>
								<th>客户名称</th>
				<td><html:text property="item.lstCustName" /></td>
			</tr>
			<tr>
								<th>客户经理编号</th>
				<td><html:text property="item.lstCustManagerId" /></td>
								<th>客户经理</th>
				<td><html:text property="item.lstCustManagerName" /></td>
			</tr>
			<tr>
								<th>上次下单时间</th>
				<td><html:text property="item.lstLastOrderDate" /></td>
								<th>确认流失时间</th>
				<td><html:text property="item.lstLostDate" /></td>
			</tr>
			<tr>
								<th>暂缓措施</th>
				<td><html:text property="item.lstDelay" /></td>
								<th>流失原因</th>
				<td><html:text property="item.lstReason" /></td>
			</tr>
			<tr>
								<th>状态</th>
				<td><html:text property="item.lstStatus" /></td>
			</tr>
		</table>
		
		<script>
		build_validate("item.lstId","编号不能为空","Limit","1","8");

		
		build_validate("item.lstCustName","客户名称不能为空","Limit","1","100");

		build_validate("item.lstCustManagerId","客户经理编号不能为空","Limit","1","8");

		build_validate("item.lstCustManagerName","客户经理不能为空","Limit","1","50");

		build_validate("item.lstLastOrderDate","上次下单时间不能为空","Limit","1","8");

		build_validate("item.lstLostDate","确认流失时间不能为空","Limit","1","8");

		build_validate("item.lstDelay","暂缓措施不能为空","Limit","1","4000");

		build_validate("item.lstReason","流失原因不能为空","Limit","1","2000");

		build_validate("item.lstStatus","状态不能为空","Limit","1","10");

		</script>
	</html:form>	
  </body>
</html:html>
